<?php
/**
 * Group of applications data per time interval.
 */
class Application {

    public $date;
    public $measure;
    public $received;
    public $left_from_previous = 0;
    public $administrated;
    public $subdivision = null;
    public $subdivision_time = 0;
    public $is = null;

    public function __construct($date, $measure, $received, $administrated, $subdivision = null, $is = null) {
        $this->date = $date;
        $this->measure = $measure;
        $this->received = $received;
        $this->administrated = $administrated;
        $this->subdivision = $subdivision;
        $this->is = $is;
    }
    
    public function get_time_administrated() {
        return $this->subdivision_time * $this->administrated;
    }
}
